﻿@{
    ViewBag.Title = "路由测试";

    string test1 = RouteResolver.MakeSiteUrl("site", "area", "controller", "action", null);
    string test2 = RouteResolver.MakeSiteUrl("site", "area", "controller", "action", "?a=b&c=d");
    string test3 = RouteResolver.MakeSiteUrl("site", "area", "controller", "action", "a=b");
    string test4 = RouteResolver.MakeSpaceUrl("xiaoming", "controller", "action", null);
    string test5 = RouteResolver.MakeSpaceUrl("xiaoming", "controller", "action", "?a=b&c=d");
    string test6 = RouteResolver.MakeSpaceUrl("xiaoming", "controller", "action", "a=b");
    string test7 = RouteResolver.MakeUrl("cms", "controller", "action", null);
    string test8 = RouteResolver.MakeUrl("cms", "controller", "action", "?a=b&c=d");
    string test9 = RouteResolver.MakeUrl("cms", "controller", "action", "a=");

    var list = new List<string>();
    list.Add(test1);
    list.Add(test2);
    list.Add(test3);
    list.Add(test4);
    list.Add(test5);
    list.Add(test6);
    list.Add(test7);
    list.Add(test8);
    list.Add(test9);
}


<li class="">
    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
        路由测试
        &nbsp;
        <i class="ace-icon fa fa-angle-down bigger-110"></i>
    </a>
    <ul class="dropdown-menu dropdown-light-blue dropdown-caret">
        @foreach (var menu in list)
        {
            <li>
                <a href="@Url.Content(menu)">
                    <i></i>
                    @Url.Content(menu)
                </a>
            </li>
        }
    </ul>
</li>
<div class="bs-docs-section">

    <div class="row">
        <div class="col-xs-12">
            @foreach (var menu in list)
            {
                <h2>@menu</h2>
            }
        </div>
    </div>

</div>
